package com.fwc.churchtracker.messaging;

import javax.servlet.ServletContext;

public class UnimplementedService extends MessagingService {

   public UnimplementedService(ServletContext servletContext, String toAddress) {
		super(servletContext, toAddress);
	}

	public String receive(String fromAddress, String body) {	
			String domain = toAddress.replaceAll("^[^@]*", "");
			if(domain.equals("@appspot.com")) domain = "@digital-commish.appspotchat.com";
	    	return "Sorry, " + fromAddress+".  This is an unimplemented service.  If you're submitting a score, send your message to scores"+domain+".  If you're submitting a shout, send your message to shout"+domain+".";
	   }
	
}
